package com.lxw.study.structural.proxy.dynamicproxy.proxyfactory.advice;

import lombok.extern.slf4j.Slf4j;
import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;
import java.util.Arrays;

@Slf4j
public class MyBeforeAdvice implements MethodBeforeAdvice {
	@Override
	public void before(Method method, Object[] args, Object target) {
		log.info("方法执行前 方法:{},入参:{}",method.getName(), Arrays.toString(args));
	}
}
